package com.zhongkeruan.product.dao;

import com.zhongkeruan.common.model.Product;
import com.zhongkeruan.common.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author yangyao
 * @Description: UserDao
 * @date 2019/1/11 15:14
 */
@Mapper
public interface ProductDao {

    public List<Product> getProductList() throws Exception;

    public Product getProductById(@Param("id") Long id) throws Exception;

    public int addProduct(Product product) throws Exception;
}
